package com.example.order.service;

import com.example.order.mapper.DishMapper;
import com.example.order.model.DishInfo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DishService {
    @Resource
    private DishMapper dishMapper;

    public List<DishInfo> getList(){
        return dishMapper.getList();
    }

    public int add(DishInfo dish){
        return dishMapper.add(dish);
    }

    public int del(int id){
        return dishMapper.del(id);
    }
}
